import { createI18n } from "vue-i18n";

import en from "./en.json"
import zhCn from "./zh-CN.json"

const messages = {
    en,
    "zh-CN": zhCn
}

const  i18n = createI18n({
    legacy: false,
    locale: "zh-CN",
    messages,
    fallbackLocale: 'zh-CN',
    globalInjection: true,  
})

export default i18n